package com.sishu.websocket4.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@NoArgsConstructor
@AllArgsConstructor
@Data
@TableName("TransactionRecord")
public class TransactionRecord {

      @TableId(type = IdType.AUTO)
      private Integer id;
    // Getters and Setters
       @JsonProperty("payerUserId")
       private String payerUserId;

       @JsonProperty("geterUserId")
       private String geterUserId;

       @JsonProperty("amount")
       private int amount;

       @JsonProperty("transactionType")
       private String transactionType;

       @JsonProperty("siteId")
       private String siteId;

       @JsonProperty("groupId")
       private String groupId;

       @JsonProperty("userId")
       private String userId;

       @JsonProperty("cardNo")
       private String cardNo;

       @JsonProperty("transactionDate")
       private Timestamp transactionDate;

}
   